* image.c (free_image): Mark frame as garbaged (Bug#6426).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 19 Jun 2010 19:43:47 +0000 (15:43 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 19 Jun 2010 19:43:47 +0000 (15:43 -0400)
src/ChangeLog
src/image.c

index 5c96e527d0703c9279f52c4a358c3f453f920dcb..9d83172e8127c2356f0144f19124a4d1758536bb 100644 (file)
@@ -1,5 +1,7 @@
 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
 
+       * image.c (free_image): Mark frame as garbaged (Bug#6426).
+
        * keymap.c (Fdefine_key): Doc fix (Bug#6460).
 
 2010-06-15  Glenn Morris  <rgm@gnu.org>
index 1265b900c6cc645830c0a9cd3adb541ce6a71091..e7db3a7df1b8855fa6ff9b3142a0a62b18ac4dd2 100644 (file)
@@ -1094,6 +1094,10 @@ free_image (f, img)
       /* Free resources, then free IMG.  */
       img->type->free (f, img);
       xfree (img);
+
+      /* As display glyphs may still be referring to the image ID, we
+        must garbage the frame (Bug#6426).  */
+      SET_FRAME_GARBAGED (f);
     }
 }